package com.springboot.study.tests.importselector;

import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.annotation.Order;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Author: guodong
 * @Date: 2021/11/13 9:02
 * @Version: 1.0
 * @Description:
 */
@Order(101)
public class CustomizeImportSelector2 implements DeferredImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        System.out.println("2-----------------selectImports : " + this.getClass().getSimpleName());
        return new String[]{CustomizeServiceImpl2.class.getName()};
    }

}